package com.heima.behavior.controller.v1;

import com.heima.behavior.service.ReadBehaviorService;
import com.heima.behavior.service.impl.ReadBehaviorServiceImplTest;
import com.heima.model.behavior.dtos.ReadBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/api/v1")
public class ApReadBehaviorController {
	@Autowired
	private ReadBehaviorServiceImplTest readBehaviorService;
	
	@PostMapping("/read_behavior")
	public ResponseResult readBehavior(@RequestBody ReadBehaviorDto dto) {
		return readBehaviorService.read(dto);
	}
	
	
	
}
